package com.shigu.account.enums;

import lombok.Data;

/*
 * create by  过儿  2019-06-03
 *
 */
public enum WalletChangeType {
    money(1),
    voucher(2);


    public static WalletChangeType selByValue(int value) {
        for (WalletChangeType level : WalletChangeType.values()) {
            if (level.getValue() == value) {
                return level;
            }
        }
        return null;
    }

    WalletChangeType(int value) {
        this.value = value;
    }

    private int value;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

}
